package com.prj.ufdm.cloud.ms.auth.enums;


public enum FuntionTypeEnum {
	FLAG_TYPE_MENU("1","菜单"),
	FLAG_TYPE_FUNCTION("2","功能");
	
	private String code;
	private String message;
	
	FuntionTypeEnum(String code,String message){
		this.code = code;
		this.message = message;
	}

	public static String getRetMessage(String retCode){
		String rtnRetCode = "";
		for (FuntionTypeEnum yesOrNoStatusEnum : FuntionTypeEnum.values()) {
			if(yesOrNoStatusEnum.code.equals(retCode)){
				rtnRetCode = yesOrNoStatusEnum.message;
			}
	    }
		return rtnRetCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
